# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py3-sqlalchemy-utils
_pkgname=SQLAlchemy-Utils
pkgver=0.41.1
pkgrel=0
pkgdesc="Various utility functions and custom data types for SQLAlchemy"
url="https://sqlalchemy-utils.readthedocs.io/"
arch="noarch"
license="BSD-3-Clause"
depends="python3 py3-sqlalchemy"
makedepends="
	py3-gpep517
	py3-setuptools
	py3-wheel
	"
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

package() {
	python3 -m installer -d "$pkgdir" \
		.dist/*.whl
}

sha512sums="
f1f5d935acfb52808913d326c08584cab053193b58308d4f1eb77f818424ca849c55f1333ffde399d60e5da571224083abd828a5f70c3365709e739b9b5f3103  SQLAlchemy-Utils-0.41.1.tar.gz
"
